package com.sxmmall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sxmmall.common.to.SkuHasStockVo;
import com.sxmmall.common.utils.PageUtils;
import com.sxmmall.ware.entity.WareSkuEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品库存
 *
 * @author sxm
 * @email 1125400943@qq.com
 * @date 2021-07-07 14:44:48
 */
public interface WareSkuService extends IService<WareSkuEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /*
     * @Author sxm
     * @Description 采购单入库
     * @Date 13:27 2021/9/23
     * @Param [skuId, wareId, skuNum]
     * @return [java.lang.Long, java.lang.Long, java.lang.Integer]
     **/
    void addStock(Long skuId, Long wareId, Integer skuNum);

    /*
     * @Author sxm
     * @Description 检查对应的sku 是否有库存
     * @Date 15:31 2021/10/8
     * @Param [skuIds]
     * @return [java.util.List<java.lang.Long>]
     **/
    List<SkuHasStockVo> getSkuHasStock(List<Long> skuIds);
}

